<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->get('/combo/{id}/selectSellId', 'ComboController@selectSellId');
    $router->get('/combo/selectSellId', 'ComboController@selectSellId');
    $router->resource('activity', 'ActivityController');
    $router->resource('banner', 'BannerController');
    $router->resource('camp', 'CampController');
    $router->resource('combo', 'ComboController');
    $router->resource('food', 'FoodController');
    $router->resource('lease', 'LeaseController');
    $router->resource('park', 'ParkController');
    $router->resource('project', 'ProjectController');
    $router->resource('project_cate', 'ProjectCateController');
    $router->resource('scene', 'SceneController');
    $router->resource('trade', 'TradeController');
    $router->resource('trade_cate', 'TradeCateController');
    $router->resource('pre_time', 'PreTimeController');
    $router->resource('anchor', 'AnchorController');
    $router->resource('label', 'LabelController');
    $router->resource('link', 'LinkController');
    $router->resource('agree', 'AgreeController');
    $router->resource('order', 'OrderController');
    $router->resource('bus', 'BusController');
    $router->resource('company', 'CompanyController');
    $router->resource('filter', 'FilterController');
    $router->resource('notice', 'NoticeController');
    $router->resource('user', 'UserController');
    $router->resource('write_off', 'WriteOffController');
    $router->resource('refund', 'RefundController');
});


